<!--教师数据展示界面-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>数据显示</title>
    <style>
        .one{
            position: absolute;
            width: 800px;
            top:10px;
            left: 400px;
        }
        .two{
            position: absolute;
            width: 800px;
            top:50px;
            left: 280px;

        }
        two,
        td,th{
            border: 1px solid;
            border-collapse: collapse;
            text-align: center;
        }
    </style>
<!--     Bootstrap-->
</head>
<body>
<div class="one">
    <form>
        姓名：<input type="text" name="name">
        编号：<input type="text" name="stuno">
        <input type="submit" value="查询">
        <a href="/addwx3">
        <input type=button value="新增" >
        </a>
        <a href="/mainwx">
        <input type=button value="主页面" >
        </a>
    </form>
</div>
<div>
    <table class="two">
        <tr>
            {% for a in fields -%}
            <td>{{a}}</td>
            {% endfor -%}
            <td>删除</td>
            <td>修改</td>
            <td>密码查询</td>
            <td>密码重置</td>
        </tr>
        {%for item in result -%}
        <tr>
            {%for a in item-%}
            <td>{{a}}</td>
            {% endfor -%}
            <td><a href="/delwx3/{{item[0]}}">删除</a></td>
            <td><a href="/updatewx3?id={{item[0]}}">修改</a></td>
            <td><a href="/chawx3/{{item[0]}}">查询密码</a></td>
            <td><a href="/resetwx3/{{item[0]}}">重置密码</a></td>
        </tr>
        {% endfor -%}
    </table>
</div>

</body>
</html>